`@dpskh/tool-rewind`: Exploration Process of Folding for DeepSeek Harness
`@`dpskh/tool-rewind` is a plugin for DeepSeek Harness (DSH) designed to address the issue where intermediate steps generated during agent exploration consume context space. Working in conjunction with `@dpskh/tool-checkpoint`, this plugin folds the exploration process after the latest checkpoint into an automatically generated report while preserving persistent log auditing. Its core mechanism involves reading the latest checkpoint, generating a report via an LLM, and utilizing the `surfaceOp: replace` mechanism to replace surface session content, ensuring that subsequent requests continue based solely on the report, thereby freeing up context space. Service calls are executed via `ctx.rewind.rewind`, featuring strict error handling mechanisms that ensure no content is written in the event of failure and throws a categorized error. Report generation supports...
Read More